package pl.grabar.clinic.client.web.actions.identity;

import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.InterceptorRef;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;
import org.springframework.beans.factory.annotation.Autowired;

import pl.grabar.clinic.core.domain.person.User;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.Preparable;
@Action("login")
@InterceptorRef("grabarStack")
@Results({@Result(name = "success", location = "authenticate.jsp"),
		@Result(name = "input", type = "redirectAction", location = "authenticate.jsp")})
public class NewAuthenticationAction extends ActionSupport implements Preparable {

	private static final long serialVersionUID = 252564934961605498L;

	private static final Log LOG = LogFactory.getLog(NewAuthenticationAction.class);

	private User user;

	@Override
	public void prepare() throws Exception {
		user = new User();
	}

	@Override
	public void validate() {
		if (!hasErrors()) {

		}
	}

	@Override
	public String execute() {
		return SUCCESS;
	}

}
